package com.ruoyi.tcp.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tcp.domain.CardReader;
import com.ruoyi.tcp.entity.beat.BeatEntity;

import java.util.List;

/**
 * 读卡器Service接口
 *
 * @author ruoyi
 * @date 2024-07-29
 */
public interface ICardReaderService extends IService<CardReader> {
    Page<CardReader> pageList(Page<CardReader> page, CardReader cardReader);

    List<CardReader> listAll(CardReader cardReader);

    boolean saveOrUpdateByDeviceNumber(BeatEntity beatEntity, String clientIP);
    //设备离线
    boolean offline(String deviceSerializeNumber);
}
